package study.member.ju.weekDay3;

/**
 * 날짜 : 2014.12.04
 * 파일내용 : super()
 */	
public class PointTest {
	public static void main(String args[]){
		Point3DCopy p3 = new Point3DCopy(1,2,3);
		System.out.println("p3.x = "+p3.x);
		System.out.println("p3.y = "+p3.y);
		System.out.println("p3.z = "+p3.z);
	}
}

class PointCopy {
	int x = 10;
	int y = 20;
	
	PointCopy(int x, int y) {
		//super();
		this.x = x;
		this.y = y;
	}
}
	

class Point3DCopy extends PointCopy {
	int z=30;

	Point3DCopy() {
		this(100,200,300);
	}
	
	Point3DCopy(int x, int y, int z) {
		super(x,y);
		this.z = z;
	}
	
}
